﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using log4net;

namespace VSWClient.Utility
{
    public class LogHelper
    {
		public static readonly ILog infoLog = LogManager.GetLogger("infoLog");
		public static readonly ILog errorLog = LogManager.GetLogger("errorLog");
		public static void WriteLog(string info)
		{
			if (infoLog.IsInfoEnabled)
			{
				infoLog.Info(info);
			}
		}

		public static void WriteLog(string info, Exception ex)
		{
			if (errorLog.IsErrorEnabled)
			{
				errorLog.Error(info, ex);
			}
		}
	}
}
